package com.example.administrator.dagger2test.appmodule;

import android.content.Context;

import com.example.administrator.dagger2test.PersonBean;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017-05-31.
 */
@Module
public class ActivityMoudule {
//    @Named("context")
    @Provides
    PersonBean providePerson(Context context) {
        return new PersonBean(context);
    }

//    @Provides
////    @Named("name")
//    PersonBean providePerson( ) {
//        return new PersonBean("123");
//    }
}
